/* pages/subject.wxss */
@keyframes list-left {
  0% {
    transform: translate(-150rpx, 0rpx);
  }
  80% {
    transform: translate(5rpx, 0rpx);
  }
  100% {
    transform: translate(0, 0);
  }
}
@keyframes list-right {
  0% {
    transform: translate(150rpx, 0rpx);
  }
  80% {
    transform: translate(-5rpx, 0rpx);
  }
  100% {
    transform: translate(0, 0);
  }
}
.subject {
  display: flex;
  flex-direction: column;
  padding: 20rpx 36rpx;
  overflow-x: hidden;
  .list {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 25rpx 0;
    padding: 22rpx 28rpx;
    border-radius: 6rpx;
    min-height: 140rpx;
    font-size: 35rpx;
    color: #fff;
  }
  // ::first-letter {
  //   font-size: 80rpx;
  //   font-weight: bold;
  // }
  :nth-child(odd) {
    background-image: linear-gradient(45deg, #0081ff, #1cbbb4);
    animation-name: list-left;
    animation-duration: 2s;
  }
  :nth-child(even) {
    background-image: linear-gradient(45deg, #39b54a, #8dc63f);
    animation-name: list-right;
    animation-duration: 2s;
  }
}
.no-subject {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20rpx 36rpx;
}